#ifndef CONFIG_H
#define CONFIG_H

#include <QDebug>
#include <stdio.h>
#define STATUS_HEIGHT 40

enum UserType
{
    WEACHAT,
    NETDISK,
    NETDISKVIP
};


#define log_debug() qDebug() <<  "[" << __FILE__ << "][" <<  __FUNCTION__ << "][" << __LINE__ << "]:"

#define ToStr(number, size)  QString("%1").arg(number, size, 10, QChar('0'))

enum DocItemDataRole
{
    // make sure the  value > UserRole(0x0100)
    FsidRole        = 0x0200,
    PathRole        = 0x0201,
    DocTypeRole     = 0x0202,
    ChooseRole      = 0x0203,
    FileNameRole    = 0x0204,
    PlanRole        = 0x0205,
    TimeRole        = 0x0206,
    WeekRole        = 0x0207,
};

struct ProcessData
{
    char fileName[100];
    qlonglong currentProcess;
    qlonglong totalSize;
    bool finish;
};

//string filename, int Fsid, string path, bool docType
struct NetdistDownload
{
    char filename[100];
    char Fsid[100];
    char path[100];
    int docType;
};

#define NETDISK_PATH    "/usr/baiduNetdisk/"
#define NETDISKVIP_PATH "/usr/baiduNetdiskVip/"

#endif // CONFIG_H
